package com.crm.model.entity.godluck;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class GodLuckExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GodLuckExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLuckIdIsNull() {
            addCriterion("luck_id is null");
            return (Criteria) this;
        }

        public Criteria andLuckIdIsNotNull() {
            addCriterion("luck_id is not null");
            return (Criteria) this;
        }

        public Criteria andLuckIdEqualTo(String value) {
            addCriterion("luck_id =", value, "luckId");
            return (Criteria) this;
        }

        public Criteria andLuckIdNotEqualTo(String value) {
            addCriterion("luck_id <>", value, "luckId");
            return (Criteria) this;
        }

        public Criteria andLuckIdGreaterThan(String value) {
            addCriterion("luck_id >", value, "luckId");
            return (Criteria) this;
        }

        public Criteria andLuckIdGreaterThanOrEqualTo(String value) {
            addCriterion("luck_id >=", value, "luckId");
            return (Criteria) this;
        }

        public Criteria andLuckIdLessThan(String value) {
            addCriterion("luck_id <", value, "luckId");
            return (Criteria) this;
        }

        public Criteria andLuckIdLessThanOrEqualTo(String value) {
            addCriterion("luck_id <=", value, "luckId");
            return (Criteria) this;
        }

        public Criteria andLuckIdLike(String value) {
            addCriterion("luck_id like", value, "luckId");
            return (Criteria) this;
        }

        public Criteria andLuckIdNotLike(String value) {
            addCriterion("luck_id not like", value, "luckId");
            return (Criteria) this;
        }

        public Criteria andLuckIdIn(List<String> values) {
            addCriterion("luck_id in", values, "luckId");
            return (Criteria) this;
        }

        public Criteria andLuckIdNotIn(List<String> values) {
            addCriterion("luck_id not in", values, "luckId");
            return (Criteria) this;
        }

        public Criteria andLuckIdBetween(String value1, String value2) {
            addCriterion("luck_id between", value1, value2, "luckId");
            return (Criteria) this;
        }

        public Criteria andLuckIdNotBetween(String value1, String value2) {
            addCriterion("luck_id not between", value1, value2, "luckId");
            return (Criteria) this;
        }

        public Criteria andLuckNameIsNull() {
            addCriterion("luck_name is null");
            return (Criteria) this;
        }

        public Criteria andLuckNameIsNotNull() {
            addCriterion("luck_name is not null");
            return (Criteria) this;
        }

        public Criteria andLuckNameEqualTo(String value) {
            addCriterion("luck_name =", value, "luckName");
            return (Criteria) this;
        }

        public Criteria andLuckNameNotEqualTo(String value) {
            addCriterion("luck_name <>", value, "luckName");
            return (Criteria) this;
        }

        public Criteria andLuckNameGreaterThan(String value) {
            addCriterion("luck_name >", value, "luckName");
            return (Criteria) this;
        }

        public Criteria andLuckNameGreaterThanOrEqualTo(String value) {
            addCriterion("luck_name >=", value, "luckName");
            return (Criteria) this;
        }

        public Criteria andLuckNameLessThan(String value) {
            addCriterion("luck_name <", value, "luckName");
            return (Criteria) this;
        }

        public Criteria andLuckNameLessThanOrEqualTo(String value) {
            addCriterion("luck_name <=", value, "luckName");
            return (Criteria) this;
        }

        public Criteria andLuckNameLike(String value) {
            addCriterion("luck_name like", value, "luckName");
            return (Criteria) this;
        }

        public Criteria andLuckNameNotLike(String value) {
            addCriterion("luck_name not like", value, "luckName");
            return (Criteria) this;
        }

        public Criteria andLuckNameIn(List<String> values) {
            addCriterion("luck_name in", values, "luckName");
            return (Criteria) this;
        }

        public Criteria andLuckNameNotIn(List<String> values) {
            addCriterion("luck_name not in", values, "luckName");
            return (Criteria) this;
        }

        public Criteria andLuckNameBetween(String value1, String value2) {
            addCriterion("luck_name between", value1, value2, "luckName");
            return (Criteria) this;
        }

        public Criteria andLuckNameNotBetween(String value1, String value2) {
            addCriterion("luck_name not between", value1, value2, "luckName");
            return (Criteria) this;
        }

        public Criteria andLuckTypeIsNull() {
            addCriterion("luck_type is null");
            return (Criteria) this;
        }

        public Criteria andLuckTypeIsNotNull() {
            addCriterion("luck_type is not null");
            return (Criteria) this;
        }

        public Criteria andLuckTypeEqualTo(Short value) {
            addCriterion("luck_type =", value, "luckType");
            return (Criteria) this;
        }

        public Criteria andLuckTypeNotEqualTo(Short value) {
            addCriterion("luck_type <>", value, "luckType");
            return (Criteria) this;
        }

        public Criteria andLuckTypeGreaterThan(Short value) {
            addCriterion("luck_type >", value, "luckType");
            return (Criteria) this;
        }

        public Criteria andLuckTypeGreaterThanOrEqualTo(Short value) {
            addCriterion("luck_type >=", value, "luckType");
            return (Criteria) this;
        }

        public Criteria andLuckTypeLessThan(Short value) {
            addCriterion("luck_type <", value, "luckType");
            return (Criteria) this;
        }

        public Criteria andLuckTypeLessThanOrEqualTo(Short value) {
            addCriterion("luck_type <=", value, "luckType");
            return (Criteria) this;
        }

        public Criteria andLuckTypeIn(List<Short> values) {
            addCriterion("luck_type in", values, "luckType");
            return (Criteria) this;
        }

        public Criteria andLuckTypeNotIn(List<Short> values) {
            addCriterion("luck_type not in", values, "luckType");
            return (Criteria) this;
        }

        public Criteria andLuckTypeBetween(Short value1, Short value2) {
            addCriterion("luck_type between", value1, value2, "luckType");
            return (Criteria) this;
        }

        public Criteria andLuckTypeNotBetween(Short value1, Short value2) {
            addCriterion("luck_type not between", value1, value2, "luckType");
            return (Criteria) this;
        }

        public Criteria andLuckTitleIsNull() {
            addCriterion("luck_title is null");
            return (Criteria) this;
        }

        public Criteria andLuckTitleIsNotNull() {
            addCriterion("luck_title is not null");
            return (Criteria) this;
        }

        public Criteria andLuckTitleEqualTo(String value) {
            addCriterion("luck_title =", value, "luckTitle");
            return (Criteria) this;
        }

        public Criteria andLuckTitleNotEqualTo(String value) {
            addCriterion("luck_title <>", value, "luckTitle");
            return (Criteria) this;
        }

        public Criteria andLuckTitleGreaterThan(String value) {
            addCriterion("luck_title >", value, "luckTitle");
            return (Criteria) this;
        }

        public Criteria andLuckTitleGreaterThanOrEqualTo(String value) {
            addCriterion("luck_title >=", value, "luckTitle");
            return (Criteria) this;
        }

        public Criteria andLuckTitleLessThan(String value) {
            addCriterion("luck_title <", value, "luckTitle");
            return (Criteria) this;
        }

        public Criteria andLuckTitleLessThanOrEqualTo(String value) {
            addCriterion("luck_title <=", value, "luckTitle");
            return (Criteria) this;
        }

        public Criteria andLuckTitleLike(String value) {
            addCriterion("luck_title like", value, "luckTitle");
            return (Criteria) this;
        }

        public Criteria andLuckTitleNotLike(String value) {
            addCriterion("luck_title not like", value, "luckTitle");
            return (Criteria) this;
        }

        public Criteria andLuckTitleIn(List<String> values) {
            addCriterion("luck_title in", values, "luckTitle");
            return (Criteria) this;
        }

        public Criteria andLuckTitleNotIn(List<String> values) {
            addCriterion("luck_title not in", values, "luckTitle");
            return (Criteria) this;
        }

        public Criteria andLuckTitleBetween(String value1, String value2) {
            addCriterion("luck_title between", value1, value2, "luckTitle");
            return (Criteria) this;
        }

        public Criteria andLuckTitleNotBetween(String value1, String value2) {
            addCriterion("luck_title not between", value1, value2, "luckTitle");
            return (Criteria) this;
        }

        public Criteria andLuckTextIsNull() {
            addCriterion("luck_text is null");
            return (Criteria) this;
        }

        public Criteria andLuckTextIsNotNull() {
            addCriterion("luck_text is not null");
            return (Criteria) this;
        }

        public Criteria andLuckTextEqualTo(String value) {
            addCriterion("luck_text =", value, "luckText");
            return (Criteria) this;
        }

        public Criteria andLuckTextNotEqualTo(String value) {
            addCriterion("luck_text <>", value, "luckText");
            return (Criteria) this;
        }

        public Criteria andLuckTextGreaterThan(String value) {
            addCriterion("luck_text >", value, "luckText");
            return (Criteria) this;
        }

        public Criteria andLuckTextGreaterThanOrEqualTo(String value) {
            addCriterion("luck_text >=", value, "luckText");
            return (Criteria) this;
        }

        public Criteria andLuckTextLessThan(String value) {
            addCriterion("luck_text <", value, "luckText");
            return (Criteria) this;
        }

        public Criteria andLuckTextLessThanOrEqualTo(String value) {
            addCriterion("luck_text <=", value, "luckText");
            return (Criteria) this;
        }

        public Criteria andLuckTextLike(String value) {
            addCriterion("luck_text like", value, "luckText");
            return (Criteria) this;
        }

        public Criteria andLuckTextNotLike(String value) {
            addCriterion("luck_text not like", value, "luckText");
            return (Criteria) this;
        }

        public Criteria andLuckTextIn(List<String> values) {
            addCriterion("luck_text in", values, "luckText");
            return (Criteria) this;
        }

        public Criteria andLuckTextNotIn(List<String> values) {
            addCriterion("luck_text not in", values, "luckText");
            return (Criteria) this;
        }

        public Criteria andLuckTextBetween(String value1, String value2) {
            addCriterion("luck_text between", value1, value2, "luckText");
            return (Criteria) this;
        }

        public Criteria andLuckTextNotBetween(String value1, String value2) {
            addCriterion("luck_text not between", value1, value2, "luckText");
            return (Criteria) this;
        }

        public Criteria andTextAuthorIsNull() {
            addCriterion("text_author is null");
            return (Criteria) this;
        }

        public Criteria andTextAuthorIsNotNull() {
            addCriterion("text_author is not null");
            return (Criteria) this;
        }

        public Criteria andTextAuthorEqualTo(String value) {
            addCriterion("text_author =", value, "textAuthor");
            return (Criteria) this;
        }

        public Criteria andTextAuthorNotEqualTo(String value) {
            addCriterion("text_author <>", value, "textAuthor");
            return (Criteria) this;
        }

        public Criteria andTextAuthorGreaterThan(String value) {
            addCriterion("text_author >", value, "textAuthor");
            return (Criteria) this;
        }

        public Criteria andTextAuthorGreaterThanOrEqualTo(String value) {
            addCriterion("text_author >=", value, "textAuthor");
            return (Criteria) this;
        }

        public Criteria andTextAuthorLessThan(String value) {
            addCriterion("text_author <", value, "textAuthor");
            return (Criteria) this;
        }

        public Criteria andTextAuthorLessThanOrEqualTo(String value) {
            addCriterion("text_author <=", value, "textAuthor");
            return (Criteria) this;
        }

        public Criteria andTextAuthorLike(String value) {
            addCriterion("text_author like", value, "textAuthor");
            return (Criteria) this;
        }

        public Criteria andTextAuthorNotLike(String value) {
            addCriterion("text_author not like", value, "textAuthor");
            return (Criteria) this;
        }

        public Criteria andTextAuthorIn(List<String> values) {
            addCriterion("text_author in", values, "textAuthor");
            return (Criteria) this;
        }

        public Criteria andTextAuthorNotIn(List<String> values) {
            addCriterion("text_author not in", values, "textAuthor");
            return (Criteria) this;
        }

        public Criteria andTextAuthorBetween(String value1, String value2) {
            addCriterion("text_author between", value1, value2, "textAuthor");
            return (Criteria) this;
        }

        public Criteria andTextAuthorNotBetween(String value1, String value2) {
            addCriterion("text_author not between", value1, value2, "textAuthor");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIsNull() {
            addCriterion("delete_status is null");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIsNotNull() {
            addCriterion("delete_status is not null");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusEqualTo(Short value) {
            addCriterion("delete_status =", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotEqualTo(Short value) {
            addCriterion("delete_status <>", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusGreaterThan(Short value) {
            addCriterion("delete_status >", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusGreaterThanOrEqualTo(Short value) {
            addCriterion("delete_status >=", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusLessThan(Short value) {
            addCriterion("delete_status <", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusLessThanOrEqualTo(Short value) {
            addCriterion("delete_status <=", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIn(List<Short> values) {
            addCriterion("delete_status in", values, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotIn(List<Short> values) {
            addCriterion("delete_status not in", values, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusBetween(Short value1, Short value2) {
            addCriterion("delete_status between", value1, value2, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotBetween(Short value1, Short value2) {
            addCriterion("delete_status not between", value1, value2, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andCreateTmIsNull() {
            addCriterion("create_tm is null");
            return (Criteria) this;
        }

        public Criteria andCreateTmIsNotNull() {
            addCriterion("create_tm is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTmEqualTo(Date value) {
            addCriterion("create_tm =", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotEqualTo(Date value) {
            addCriterion("create_tm <>", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmGreaterThan(Date value) {
            addCriterion("create_tm >", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmGreaterThanOrEqualTo(Date value) {
            addCriterion("create_tm >=", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmLessThan(Date value) {
            addCriterion("create_tm <", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmLessThanOrEqualTo(Date value) {
            addCriterion("create_tm <=", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmIn(List<Date> values) {
            addCriterion("create_tm in", values, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotIn(List<Date> values) {
            addCriterion("create_tm not in", values, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmBetween(Date value1, Date value2) {
            addCriterion("create_tm between", value1, value2, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotBetween(Date value1, Date value2) {
            addCriterion("create_tm not between", value1, value2, "createTm");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdIsNull() {
            addCriterion("update_people_id is null");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdIsNotNull() {
            addCriterion("update_people_id is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdEqualTo(String value) {
            addCriterion("update_people_id =", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotEqualTo(String value) {
            addCriterion("update_people_id <>", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdGreaterThan(String value) {
            addCriterion("update_people_id >", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdGreaterThanOrEqualTo(String value) {
            addCriterion("update_people_id >=", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdLessThan(String value) {
            addCriterion("update_people_id <", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdLessThanOrEqualTo(String value) {
            addCriterion("update_people_id <=", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdLike(String value) {
            addCriterion("update_people_id like", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotLike(String value) {
            addCriterion("update_people_id not like", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdIn(List<String> values) {
            addCriterion("update_people_id in", values, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotIn(List<String> values) {
            addCriterion("update_people_id not in", values, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdBetween(String value1, String value2) {
            addCriterion("update_people_id between", value1, value2, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotBetween(String value1, String value2) {
            addCriterion("update_people_id not between", value1, value2, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIsNull() {
            addCriterion("update_tm is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIsNotNull() {
            addCriterion("update_tm is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTmEqualTo(Date value) {
            addCriterion("update_tm =", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotEqualTo(Date value) {
            addCriterion("update_tm <>", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmGreaterThan(Date value) {
            addCriterion("update_tm >", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmGreaterThanOrEqualTo(Date value) {
            addCriterion("update_tm >=", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmLessThan(Date value) {
            addCriterion("update_tm <", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmLessThanOrEqualTo(Date value) {
            addCriterion("update_tm <=", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIn(List<Date> values) {
            addCriterion("update_tm in", values, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotIn(List<Date> values) {
            addCriterion("update_tm not in", values, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmBetween(Date value1, Date value2) {
            addCriterion("update_tm between", value1, value2, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotBetween(Date value1, Date value2) {
            addCriterion("update_tm not between", value1, value2, "updateTm");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}